dask 2021.10.0

NotesParametersReturns
wrapped(x, axis=None, split_every=None, out=None)

This docstring was copied from numpy.nanmin.

Some inconsistencies with the Dask version may exist.

Notes

NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic (IEEE 754). This means that Not a Number is not equivalent to infinity. Positive infinity is treated as a very large number and negative infinity is treated as a very small (i.e. negative) number.

If the input has a integer type the function is equivalent to np.min.

Parameters

a : array_like (Not supported in Dask)

Array containing numbers whose minimum is desired. If a is not an array, a conversion is attempted.

axis : {int, tuple of int, None}, optional

Axis or axes along which the minimum is computed. The default is to compute the minimum of the flattened array.

out : ndarray, optional

Alternate output array in which to place the result. The default is None ; if provided, it must have the same shape as the expected output, but the type will be cast if necessary. See ufuncs-output-type for more details.

versionadded
keepdims : bool, optional (Not supported in Dask)

If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the original a.

If the value is anything but the default, then keepdims will be passed through to the min method of sub-classes of :None:None:`ndarray`. If the sub-classes methods does not implement keepdims any exceptions will be raised.

versionadded
initial : scalar, optional (Not supported in Dask)

The maximum value of an output element. Must be present to allow computation on empty slice. See :None:None:`~numpy.ufunc.reduce` for details.

versionadded
where : array_like of bool, optional (Not supported in Dask)

Elements to compare for the minimum. See :None:None:`~numpy.ufunc.reduce` for details.

versionadded

Returns

nanmin : ndarray

An array with the same shape as a, with the specified axis removed. If a is a 0-d array, or if axis is None, an ndarray scalar is returned. The same dtype as a is returned.

Return minimum of an array or minimum along an axis, ignoring any NaNs. When all-NaN slices are encountered a RuntimeWarning is raised and Nan is returned for that slice.

See Also

amax
amin

The minimum value of an array along a given axis, propagating any NaNs.

fmax
fmin

Element-wise minimum of two arrays, ignoring any NaNs.

isfinite

Shows which elements are neither NaN nor infinity.

isnan

Shows which elements are Not a Number (NaN).

maximum
minimum

Element-wise minimum of two arrays, propagating any NaNs.

nanmax

The maximum value of an array along a given axis, ignoring any NaNs.

Examples

This example is valid syntax, but we were not able to check execution
>>> a = np.array([[1, 2], [3, np.nan]])  # doctest: +SKIP
... np.nanmin(a) # doctest: +SKIP 1.0
This example is valid syntax, but we were not able to check execution
>>> np.nanmin(a, axis=0)  # doctest: +SKIP
array([1.,  2.])
This example is valid syntax, but we were not able to check execution
>>> np.nanmin(a, axis=1)  # doctest: +SKIP
array([1.,  3.])

When positive infinity and negative infinity are present:

This example is valid syntax, but we were not able to check execution
>>> np.nanmin([1, 2, np.nan, np.inf])  # doctest: +SKIP
1.0
This example is valid syntax, but we were not able to check execution
>>> np.nanmin([1, 2, np.nan, np.NINF])  # doctest: +SKIP
-inf
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /dask/array/reductions.py#1102
type: <class 'function'>
Commit: